package cn.nawang.ebeim.ui.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import cn.nawang.ebeim.ui.util.ApiUtil;

/**
 * @ClassName: AuthorizationCheckController
 * @Description: TODO
 * @author fanyb
 * @date Oct 28, 2015 10:42:31 AM
 * @version v1.0
 */
@RestController
public class HomePageController {
  private static final Logger LOG = LoggerFactory.getLogger(HomePageController.class);

  /**
   * 
   * @author fanyb
   * @Description: 获取首页用户统计信息
   * @param username
   * @return String
   * @date Oct 28, 20151:06:07 PM
   *
   * @修改人
   * @修改日期
   */
  @RequestMapping(value = "/first_page/total", method = RequestMethod.GET)
  public String getFirstPageMessage(String userId) {
    LOG.info("/first_page/total {}", userId);
    String data = ApiUtil.findFirstPageTotalByUserId(userId);
    return data;
  }
  
}
